package main

import "fmt"

func print(array []int) {
	fmt.Println("The value of mySlice is :")
	for _, v := range array {
		fmt.Print(v, " ")
	}
	fmt.Println()
}

func main() {
	mySlice1 := make([]int, 5)
	print(mySlice1)

	mySlice2 := make([]int, 5, 10) //reserved 10 position
	print(mySlice2)

	mySlice3 := []int{1, 2, 3, 4, 5}
	print(mySlice3)
}
